package com.guiji.text2video.fastvideo.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.guiji.text2video.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.guiji.text2video.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 text2video_tts_task
 * 
 * @author scl
 * @date 2021-05-27
 */
public class Text2videoTtsTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** job主键 */
    private String jobId;

    /** task主键 */
    @Excel(name = "task主键")
    private String ttsId;

    /** 状态（0提交任务，1表示执行成功，-1表示TTS失败） */
    @Excel(name = "状态", readConverterExp = "0=提交任务，1表示执行成功，-1表示TTS失败")
    private String isSuccess;

    /** 任务结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 备用字段1 */
    @Excel(name = "备用字段1")
    private String backup1;

    /** 音频存储路径 */
    @Excel(name = "音频存储路径")
    private String wavPath;

    /** 备用字段2 */
    @Excel(name = "备用字段2")
    private String backup2;

    /** 音频中文内容 */
    @Excel(name = "音频中文内容")
    private String wavText;

    /** 音频时长ms */
    @Excel(name = "音频时长ms")
    private String wavDuration;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }
    public Long getId() 
    {
        return id;
    }

    public void setTtsId(String ttsId)
    {
        this.ttsId = ttsId;
    }

    public String getTtsId() 
    {
        return ttsId;
    }
    public void setIsSuccess(String isSuccess) 
    {
        this.isSuccess = isSuccess;
    }

    public String getIsSuccess() 
    {
        return isSuccess;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setBackup1(String backup1) 
    {
        this.backup1 = backup1;
    }

    public String getBackup1() 
    {
        return backup1;
    }
    public void setWavPath(String wavPath) 
    {
        this.wavPath = wavPath;
    }

    public String getWavPath() 
    {
        return wavPath;
    }
    public void setBackup2(String backup2) 
    {
        this.backup2 = backup2;
    }

    public String getBackup2() 
    {
        return backup2;
    }
    public void setWavText(String wavText) 
    {
        this.wavText = wavText;
    }

    public String getWavText() 
    {
        return wavText;
    }
    public void setWavDuration(String wavDuration) 
    {
        this.wavDuration = wavDuration;
    }

    public String getWavDuration() 
    {
        return wavDuration;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("jobId", getJobId())
            .append("ttsId", getTtsId())
            .append("isSuccess", getIsSuccess())
            .append("endTime", getEndTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("backup1", getBackup1())
            .append("wavPath", getWavPath())
            .append("backup2", getBackup2())
            .append("wavText", getWavText())
            .append("wavDuration", getWavDuration())
            .toString();
    }
}
